package a.f.g.a;

import a.c.k;
import a.f.g.a.a.h;
import a.f.o;

public class s
  extends m
{
  public static final Object a = "NodeGridFeature.DP_KEY_NODE_GRID";
  private h b;
  private int c;
  private a.f.g.a.a.d d;
  public static int e;
  
  public s()
  {
    this(300);
  }
  
  public s(int paramInt)
  {
    this.c = paramInt;
  }
  
  public void a(d paramd)
  {
    super.a(paramd);
    paramd.a(new bc()
    {
      public void a(bb paramAnonymousbb, xb paramAnonymousxb)
      {
        s.this.b = new h(s.this.c, s.this.c, new s.1(this, paramAnonymousxb));
        s.this.b.a(paramAnonymousxb.m());
        s.this.d = new a.f.g.a.a.d(s.this.b);
        paramAnonymousxb.m().a(s.this.d);
        paramAnonymousxb.m().a(s.a, new s.5(this));
        paramAnonymousxb.a(new s.2(this));
      }
    });
    paramd.i(new bc()
    {
      public void a(bb paramAnonymousbb, xb paramAnonymousxb)
      {
        if (!xb.r)
        {
          if (s.this.b == null) {
            return;
          }
          s.this.b.a();
        }
        s.this.b.a(paramAnonymousxb.m());
      }
    });
    paramd.c(new bc()
    {
      public void a(bb paramAnonymousbb, xb paramAnonymousxb)
      {
        paramAnonymousxb.m().b(s.this.d);
        paramAnonymousxb.m().j(s.a);
      }
    });
  }
  
  public static h a(lb paramlb)
  {
    o localo = paramlb.m();
    return a(localo);
  }
  
  public static h a(o paramo)
  {
    k localk = paramo.c(a);
    if (!xb.r) {
      if (localk == null) {
        throw new IllegalStateException("No DataProvider containing the grid found.Has the feature NodeGridFeature been added to the GenericOrganicLayouter?");
      }
    }
    return (h)localk.get(null);
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.f.g.a.s
 * JD-Core Version:    0.7.0.1
 */